package com.kaiwukj.android.ufamily.mvp.contract;

import android.content.Context;

import com.kaiwukj.android.mcas.mvp.IModel;
import com.kaiwukj.android.mcas.mvp.IView;
import com.kaiwukj.android.ufamily.mvp.http.entity.base.BaseListResp;
import com.kaiwukj.android.ufamily.mvp.http.entity.base.BaseObjResp;
import com.kaiwukj.android.ufamily.mvp.http.entity.event.PayInfo;
import com.kaiwukj.android.ufamily.mvp.http.entity.requestbak.PayFeeCancelRequest;
import com.kaiwukj.android.ufamily.mvp.http.entity.requestbak.PayFeeListRequest;
import com.kaiwukj.android.ufamily.mvp.http.entity.requestbak.PayFeeRequest;
import com.kaiwukj.android.ufamily.mvp.http.entity.resultbak.AlipayResult;
import com.kaiwukj.android.ufamily.mvp.http.entity.resultbak.PayFeeListResult;
import com.kaiwukj.android.ufamily.mvp.http.entity.resultbak.PayFeeResult;

import java.util.List;

import io.reactivex.Observable;


/**
 * @author Charles
 * @date 2019/8/14.
 * description：Kaiwu
 */
public interface PayFeeContract {

    interface View extends IView {
        Context getCtx();

        void getPayFeeList(List<PayFeeListResult> data);

        void showPayFeeList(List<PayFeeResult> results);

        void getListFail();

        void wxPayGetInfo(PayInfo data);
    }

    interface Model extends IModel {
        Observable<BaseListResp<PayFeeListResult>> requestPayFeeList(PayFeeListRequest request);

        Observable<BaseListResp<PayFeeResult>> requestPayFeeLists(String reqJson);

        Observable<BaseObjResp<PayInfo>> payByWechat(PayFeeRequest request);

        Observable<BaseObjResp<AlipayResult>> payByAli(PayFeeRequest request);

        Observable<BaseObjResp<Object>> cancelOrder(PayFeeCancelRequest request);

    }
}
